package com.questionnaire.modular.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.questionnaire.modular.system.dao.MenuMapper;
import com.questionnaire.modular.system.dao.UserMapper;
import com.questionnaire.modular.system.model.Menu;
import com.questionnaire.modular.system.model.MenuNode;
import com.questionnaire.modular.system.model.User;
import com.questionnaire.modular.system.service.MenuService;
import com.questionnaire.modular.system.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: YSL
 * @time: 2023/11/9 11:33
 */
@Slf4j
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {
    public List<MenuNode> getMenusByRoleIds(List<Integer> roleList) {
       return baseMapper.getMenuByRoleIds(roleList);
    }
}
